﻿@model BulletinModel.BulletinItem
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@{
    ViewBag.Title = "giveComment";
}
<h2>详细信息</h2>
<div id="operate" class="formUp">
        <span>
@*    @Html.ActionLink("删除", "Delete",new { ProjectSN=Model.ProjectSN})
    @Html.ActionLink("编辑", "Edit", new { ProjectSN=Model.ProjectSN})*@
    @Html.ActionLink("返回", "Details", "BulletinItem", new { BulletinID=Model.BulletinID,BulletinYaMa=ViewData["BulletinYaMa"],id=ViewData["YeMa"]},null)
        </span>
 @if (User.Identity.Name != "") 
      { 
        <span>
      @using (Html.BeginForm("Delete", "BulletinItem", FormMethod.Post))
        { @Html.ValidationSummary(true)
         @Html.Hidden("ProjectSN",Model.ProjectSN) 
          @Html.Hidden("BulletinID",Model.BulletinID) 
          @Html.Hidden("YeMa", ViewData["YeMa"])       
           @Html.Hidden("BulletinYaMa",ViewData["BulletinYaMa"])   
         <input type="submit" value="删除"  />
          }       
        </span>
        <span>
            @using (Html.BeginForm("Edit", "BulletinItem", FormMethod.Post))
             {
                @Html.Hidden("ProjectSN",Model.ProjectSN) 
                @Html.Hidden("BulletinID",Model.BulletinID)      
                @Html.Hidden("YeMa", ViewData["YeMa"])       
                @Html.Hidden("BulletinYaMa",ViewData["BulletinYaMa"])       
                <input type="submit" value="编辑"  />
              }
@*   @Html.ActionLink("编辑", "Edit", "BulletinItem", new {ProjectSN=ViewData["ProjectSN"],
BulletinID=Model.BulletinID,YeMa=ViewData["YeMa"],BulletinYaMa=ViewData["BulletinYaMa"]
}, null)*@
            </span>
}
</div>

<fieldset class="show">
    <legend>基本信息</legend>
    <div class="display-label">项目名称</div>
    <div class="display-field">
        @Html.DisplayFor(model =>model.ProjectTitle)
    </div>

    <div class="display-label">区县</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.County)
    </div>

    <div class="display-label">单位</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.School)
    </div>

    <div class="display-label">姓名</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TeacherName)
    </div>

    <div class="display-label">结果</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Conclusion)
    </div>
        <div class="display-label">评语</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Comment)
    </div>
</fieldset>

    <fieldset style="margin-top:10px">
        <legend>总体评价</legend>
         @{Html.RenderAction("AverageStar_TotalCommentCount", "Feedback", new { projectSN = Model.ProjectSN });}
       @{Html.RenderAction("FeedBackList", "Feedback", new { projectSN = Model.ProjectSN,BulletinYaMa = ViewData["BulletinYaMa"], YeMa = ViewData["YeMa"]});}
            </fieldset>
    <div style="clear:both">
         @{Html.RenderAction("MakeComment", "Feedback", new { projectSN = Model.ProjectSN, BulletinYaMa = ViewData["BulletinYaMa"], YeMa = ViewData["YeMa"] });}
    </div>

